<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateRepairProjectsTable extends Migration
{
  /**
   * 维修项目
   * Run the migrations.
   *
   * @return void
   */
  public function up()
  {
    Schema::create('repair_project', function (Blueprint $table) {
      $table->increments('id');
      $table->unsignedSmallInteger('repair_bills_id')->comment('维修单ID');
      $table->text('project_msg')->comment('维修项目');
      $table->unsignedSmallInteger('profession_id')->comment('工种ID');
      $table->unsignedSmallInteger('staff_id')->comment('主修人ID');
      $table->string('expect_complete_time', 30)->comment('预计竣工时间');
      $table->timestamps();
    });
  }

  /**
   * Reverse the migrations.
   *
   * @return void
   */
  public function down()
  {
    Schema::dropIfExists('repair_project');
  }
}
